package com.gz.moreaseManager.sys.mapper;

import com.gz.moreaseManager.sys.entity.Role;
import com.gz.moreaseManager.sys.entity.UserRole;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 用户权限表 Mapper 接口
 * </p>
 *
 * @author wike
 * @since 2019-02-19
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 根据用户ID获取拥有角色列表
     * @param userId
     * @return
     */
    List<Role> findRoleListByUserId(Integer userId);
}
